<template>
  <div class="hello">
  	<input type="button" @click="test()" value="点击我"/>
    <h1>{{ msg }}</h1>
  </div>
</template>

<script>
	import jQuery from 'jquery'
	window.jQuery=jQuery
	let layer = require("layui-layer")
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App2'
    }
  },
  methods:{
  	test(){
		layer.msg("sdf888")
//		plus.nativeUI.toast("sdf12121");
  	}
  }
 }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}

input{
	width: 100px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}
</style>
